package com.pigs.pigsordersystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author PIGS-猪农·杨
 * @version 1.0
 * @date 2020/3/14 11:48
 * @effect 有共同属性的 id 、状态、创建时间、 名称
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
@ApiModel("共同属性的 id 、状态、创建时间、 名称")
public class BaseEntity implements Serializable {

    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id",required = true)
    private Integer id;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态",required = true)
    private Integer status;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间",required = true)
    private String createTime;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称",required = true)
    private String name;


}
